﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SDrugCanUseDtMsg extends IMessageBase
    {
        public var canUseContinueLifeDrugDt:Date;
        public var canUseContinueManaDrugDt:Date;
        public var canUseInstantLifeDrugDt:Date;
        public var canUseInstantManaDrugDt:Date;
        public var canUseLifeBagDrugDt:Date;
        public var canUseManaBagDrugDt:Date;
        public var canUseExpDrugDt:Date;
        public var canUseContinuePetLifeDrugDt:Date;
        public var canUsePetLifeBagDrugDt:Date;
        public const _type:int = 15073;
        public static var _regist:SDrugCanUseDtMsg = new SDrugCanUseDtMsg(true);

        public function SDrugCanUseDtMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SDrugCanUseDtMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeDate(this.canUseContinueLifeDrugDt);
            param1.writeDate(this.canUseContinueManaDrugDt);
            param1.writeDate(this.canUseInstantLifeDrugDt);
            param1.writeDate(this.canUseInstantManaDrugDt);
            param1.writeDate(this.canUseLifeBagDrugDt);
            param1.writeDate(this.canUseManaBagDrugDt);
            param1.writeDate(this.canUseExpDrugDt);
            param1.writeDate(this.canUseContinuePetLifeDrugDt);
            param1.writeDate(this.canUsePetLifeBagDrugDt);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.canUseContinueLifeDrugDt = param1.readDate();
            this.canUseContinueManaDrugDt = param1.readDate();
            this.canUseInstantLifeDrugDt = param1.readDate();
            this.canUseInstantManaDrugDt = param1.readDate();
            this.canUseLifeBagDrugDt = param1.readDate();
            this.canUseManaBagDrugDt = param1.readDate();
            this.canUseExpDrugDt = param1.readDate();
            this.canUseContinuePetLifeDrugDt = param1.readDate();
            this.canUsePetLifeBagDrugDt = param1.readDate();
            return;
        }// end function

    }
}
